package com.zhangck.bos2_0.Service.take_delivery;

import java.util.Date;
import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.xml.crypto.Data;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.scheduling.quartz.QuartzJobBean;

import cn.itcast.bos.domain.page.PageBean;
import cn.itcast.bos.domain.system.Permission;
import cn.itcast.bos.domain.take_delivery.Promotion;





/** 
* @author 上午茶
* @version 创建时间：2018年6月7日 下午3:24:44 
* 类说明 
*/
public interface PromotionService {

	void Save(Promotion model);

	Page<Promotion> findPageData(Pageable request);

	Promotion findByID(Integer id);
	
	 void tasks();

	@GET
	@Path("/findPage")
	@Produces({ "application/xml", "application/json" })
	@Consumes({ "application/xml", "application/json" })
	PageBean<Promotion> findPage(@QueryParam("page")int page,
			@QueryParam("rows")int rows);
	
	@GET
	@Path("/findPromotion")
	@Produces({ "application/xml", "application/json" })
	public Promotion findPromotion(@QueryParam("id")int id);

}
